
#ifndef WIDGET_H//widget.h
#define WIDGET_H
#include"boxgame.h"
#include <QWidget>



QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget

{
    Q_OBJECT

public:
    Widget(QWidget* parent = nullptr);
    ~Widget();
    void keyPressEvent(QKeyEvent* event);
    void paintEvent(QPaintEvent* event);
private:
    Ui::Widget* ui;
    QPainter* pMap;
    BoxGame* pBox;
};
#endif // WIDGET_H
